package com.ipinyou.wordstatistics;

import com.ipinyou.wordstatistics.core.ResourceSearch;
import com.ipinyou.wordstatistics.handler.ChineseWordHandler;
import com.ipinyou.wordstatistics.listener.ExportxlsListener;
import com.ipinyou.wordstatistics.util.ExtensionFileFilter;

/**
 * 从代码中抽取中文到xls
 *
 */
public class App 
{
    public static void main( String[] args )
    {
//        ResourceSearch search=new ResourceSearch("java","/opt/workspace/console/src/main/java");
        ResourceSearch search=new ResourceSearch(new ExtensionFileFilter("js"),"/opt/workspace/multilingual-console/src/main");
        search.setHandleDoneListener(new ExportxlsListener("/home/wangxiangnan/Book1.xls",3,"js"));
        search.search(new ChineseWordHandler());
    }
}
